package base;

import android.app.Dialog;
import android.content.Intent;
import android.support.v4.app.Fragment;

import com.hichip.campro.R;

import utils.DialogUtils;

/**
 * 父类 Fragment
 */
public class HiFragment extends Fragment{
	public Dialog mJhLoading;

	@Override
	public void startActivity(Intent intent) {
		super.startActivity(intent);
		getActivity().overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);
	}
	/**
	 * 菊花转的dialog
	 */
	public void showjuHuaDialog() {
		if (mJhLoading == null) {
			mJhLoading = DialogUtils.createLoadingDialog(getContext(), true);
		}
		mJhLoading.show();
	}

	/**
	 * 菊花转的dialog
	 */
	public void dismissjuHuaDialog() {
		if (mJhLoading != null) {
			mJhLoading.dismiss();
		}
	}

}




